<?php
/*
Template Name: Archives
*/
?>


<?php get_header(); ?>

<div id="contentwrapper">
    <div id="leftcolumn">
        <div id="topleftboxcontainer">
            <div class="contentboxtabs">
                <ul>                        
                    <li><a href="javascript:void(null)" class="selected">Archives</a></li>                        
                </ul>
            </div>
            <div class="contentbox">
                <div id="postbox">
                    <div class="post">
                        <div class="postcontent">
                            <h4>Archives by Month:</h4>
                              <ul>
                                <?php wp_get_archives('type=monthly'); ?>
                              </ul>

                            <h4>Archives by Subject:</h4>
                              <ul>
                                 <?php wp_list_cats(); ?>
                              </ul> 
                        </div>
                    </div>
                </div>                    
            </div>
        </div>

        <div id="bottomleftboxcontainer">
            <div class="contentboxtabs">
                <ul>                        
                    <li><a href="javascript:void(null)" class="selected">Recent Posts</a></li>
                </ul>
            </div>
            <div class="contentbox">
                <div id="recentpostbox">
                    <ul>
                        <?php
                            query_posts('showposts=10');
                        ?>                            
                        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                            <li><span class="recentpostheader"><span class="recentpostdate"><?php the_time('M j') ?></span> | <a href="<?php the_permalink() ?>"><?php the_title() ?></a></span>
                            <span class="recentpostinfo"><?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></span></li>
                        <?php endwhile; endif; ?>
                    </ul>
                </div>
            </div>
        </div>
    </div> <!-- LEFTCOLUMN --> 
    
    <?php get_sidebar(); ?>
    
</div> <!-- CONTENTWRAPPER --> 

<?php get_footer(); ?>
